package com.amt.olcacon.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 任务表实体类
 */
@Data
@TableName("task")
@Accessors(chain = true)
public class TaskEntity {

    @TableId("id")
    private Long id;

    @TableField(value = "created_time", fill = FieldFill.INSERT)
    private Date createdTime;

    @TableField(value = "updated_time", fill = FieldFill.INSERT_UPDATE)
    private Date updatedTime;

    @TableField("created_by")
    private String createdBy;

    @TableField("updated_by")
    private String updatedBy;

    @TableField("model_id")
    private Long modelId;

    @TableField("version")
    private Long version;

    @TableField("name")
    private String name;

    @TableField("start_time")
    private Date startTime;

    @TableField("finish_time")
    private Date finishTime;

    @TableField("submitter")
    private String submitter;

    @TableField("status")
    private String status;

    @TableField("new_process_id")
    private Long newProcessId;

    @TableField("process_id")
    private Long processId;

    // 逻辑删除注解示例（如需）
    // @TableLogic
    // private Integer deleted;
}